<%--
  Created by IntelliJ IDEA.
  User: 王文尧
  Date: 2024/7/16
  Time: 13:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="ueditor/ueditor.all.js"></script>
</head>
<body>
    <div class="content-text">
        <%--添加博客的页面--%>
        <form method="post" action="ueditorServlet">
            <div style="width: 1000px;margin: auto">
                主题: <input type="text" name="title"/><br/>
                内容: <textarea id="myEditor" name="blogContent" style="width: 1000px;height: 500px;margin: auto"></textarea>
                <script type="text/javascript">
                    var editor = new UE.ui.Editor();
                    editor.render("myEditor"); // id=myEditor 的文本框添加 ueditor 富文本编辑器效果
                </script>
                <input type="submit" value="添加"/>
            </div>
        </form>
    </div>
</body>
</html>
